package com.monitor.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.monitor.entity.ErpSpecifications;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 品名规格 Mapper 接口
 * </p>
 *
 * @author LX
 * @since 2018-09-20
 */
public interface ErpSpecificationsMapper extends BaseMapper<ErpSpecifications> {



    @Select("SELECT * FROM erp_specifications ORDER BY  convert(name using gbk)  ASC")
    List<ErpSpecifications> getSpecCustomerBycustIdList();

    @Select("SELECT `name`,zid FROM erp_specifications WHERE pid=#{pid}")
    public List<Map<String, Object>> selectByPid(@Param("pid")String pid);
}
